import loggers
from dbus import Interface

def plugin_spam_filter(*args, **kwargs):
    logger = loggers.loggers('spam-filter', 'spam-filter.log')

    #is_spam = filter_engine.incoming_sms(sms_ref_number=index, 
                               #sim_number=sender_number, 
                               #text=contents)
                                                              
    is_spam = True
    index = 999
    #print 'args', args
    #print 'kwargs', kwargs
    
    if is_spam == False:
        logger.info('Cool, sms %s is not a spam' % (index))
    elif is_spam == True:
        logger.info('Shit, sms %s is A spam' % (index))
    
    
